﻿//-----------------------------------------------------------------
//
// @(#)$Id: Dispute.aspx.cs,v 1.0 2013/12/13 16:58:26 lichunhua Exp $
// @(#)$Author: lichunhua  $
// @(#)$Date: 2013/12/13 16:58:26 $
// @(#)$Description:
//
//
//
//                 All Rights Reserved.
//-----------------------------------------------------------------
using System;
using System.Web.UI.WebControls;
using ebay.Dal.CenterDB_EbayTableAdapters;

public partial class UI_Bas_Dispute : System.Web.UI.Page
{
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        T_EbayAccountTableAdapter adapter = new T_EbayAccountTableAdapter();
        ddlebayUserId.DataSource = adapter.GetData();
        ddlebayUserId.DataTextField = "EbayUserId";
        ddlebayUserId.DataBind();
        ddlebayUserId.Items.Insert(0, new ListItem("《--请选择--》", " "));

        //投诉原因
        string[] disputeReasons = Enum.GetNames(typeof(eBay.Service.Core.Soap.DisputeReasonCodeType));
        foreach (string reason in disputeReasons)
        {
            if (reason != "CustomCode")
            {
                ddldisputeReason.Items.Add(reason);
            }
        }
        ddldisputeReason.Items.Insert(0, new ListItem("《--请选择--》","Select"));               
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        WebUtility.CheckRight();
        if (!IsPostBack)
        {
            dateFrom.Value = DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd");
            dateTo.Value = DateTime.Now.ToString("yyyy-MM-dd");          
        }
    }
}
